<template>
<div>修改图片路径</div>
<button  @click="showInfor">点击按钮</button>
<img src="url" />
</template>
<script setup>
import { ref } from 'vue';
//显示图片
let url = new URL("../assets/img1.webp,import.meta.url").href;
setTimeout(() =>{
url.value = new URL("../assets/img1.webp,import.meta.url").href;
},2000);

</script>

<style>



</style>